package com.yueya.media.model;

import java.io.InputStream;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * @author yueya
 */
public class MediaDto implements Serializable {
    private static final long serialVersionUID = 1107029590120327352L;
    /**
     * 文件名
     */
    private String name;
    /**
     * 地名或地址id
     */
    private String main_id;
    /**
     * 文件id
     */
    private String id;
    /**
     * 地名类别，导入时标识文件夹用的
     */
    private String main_type;
    /**
     * 类型：.jpg;.png;.pdf
     */
    private String extenType;

    public long getLength() {
        return length;
    }

    /**
     * 文件大小
     */
    private long length;


    public InputStream getFins() {
        return fins;
    }

    public void setFins(InputStream fins) {
        this.fins = fins;
    }

    /**
     * 其他扩展信息
     *
     * @return
     */
    public Map<String, Object> getMetadata() {
        return metadata;
    }

    public void setMetadata(Map<String, Object> metadata) {
        this.metadata = metadata;
    }

    public Map<String, Object> metadata = new HashMap<>();

    /**
     * 文件输入流
     */
    private InputStream fins;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMain_id() {
        return main_id;
    }

    public void setMain_id(String main_id) {
        this.main_id = main_id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getExtenType() {
        return extenType;
    }

    public void setExtenType(String extenType) {
        this.extenType = extenType;
    }

    public String getMain_type() {
        return main_type;
    }

    public void setMain_type(String main_type) {
        this.main_type = main_type;
    }

    public void setLength(long length) {
        this.length = length;
    }
}
